package com.dimples.dd.system.convert;

import com.dimples.dd.system.model.bo.DeptBO;
import com.dimples.dd.system.model.entity.SystemDeptDO;
import com.dimples.dd.system.model.form.DeptForm;
import com.dimples.dd.system.model.vo.DeptTreeVO;
import org.mapstruct.Mapper;

/**
 * 部门对象转换器
 *
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2024/7/17
 */
@Mapper(componentModel = "spring")
public interface DeptConverter {

    DeptForm entity2Form(SystemDeptDO entity);

    DeptTreeVO entity2Vo(SystemDeptDO entity);

    SystemDeptDO form2Entity(DeptForm deptForm);

    DeptTreeVO entity2Vo(DeptBO dept);
}
